
import store from '@/store'

export default {
    inserted(el, binding, vnode) {
        const { value } = binding
        const roles = store.getters && store.getters['user/buttonJurisdiction']
        if (roles.indexOf(value) == -1) {
            el.parentNode && el.parentNode.removeChild(el)
        }
    }
}
